package com.ruoyi.ruoyixingyue.modules.api.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @Author 卢壮志
 * @Date 2024/2/24
 * @Time: 16:57
 */
@Data
@ApiModel("课程更新Vo")
public class CourseUpdateVo {

    @ApiModelProperty("课程id")
    @NotNull(message = "课程id不能为空")
    private Long id;

    @ApiModelProperty("课程名称")
    @NotBlank(message = "课程名称不能为空")
    private String name;

    @ApiModelProperty("教师id")
    @NotNull(message = "教师id不能为空")
    private Long teacherId;

    @ApiModelProperty("课程类型id")
    @NotNull(message = "课程类型不能为空")
    private Long typeId;

    @ApiModelProperty("是否免费")
    @NotNull(message = "是否免费请选择")
    private Integer free;

    @ApiModelProperty("课程状态")
    @NotNull(message = "状态不能为空")
    private Integer status;

    @ApiModelProperty("价格")
    private BigDecimal price;

    @ApiModelProperty("封面")
    @NotBlank(message = "封面不能为空")
    private String coverUrl;
}
